#donateWrap {
  background: transparent;
  position: relative;
  height: 240px;

  .blur {
    filter: blur(3px);
  }

  #donateContainer {
    position: absolute;
    width: 300px;
    height: 30px;
    line-height: 30px;
    left: calc(50% - 150px);
    top: calc(50% - 15px);
  }

  #DonatePic {
    position: absolute;
    width: 70px;
    height: 70px;
    left: 30px;
    bottom: 3px;
    background: url(../img/like.png) no-repeat center / 100%;
    transform: rotateZ(-15deg);
  }

  #github {
    position: absolute;
    width: 24px;
    height: 24px;
    right: -9px;
    top: -15px;
    background: url(../img/github.svg) no-repeat center center / 100%;
    transform: rotateZ(15deg);
    opacity: 0.3;
    cursor: pointer;
  }

  .list,
  .list li {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  #donateList {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
  }
  #donateList li {
    display: none;
    box-sizing: border-box;
    float: left;
    height: 100%;
    text-align: center;
    border-left: 1px solid #ddd;
    background: rgba(204, 217, 220, 0.1) no-repeat center center / 45px;
    transition: all 0.3s;
    cursor: pointer;
    overflow: hidden;
    filter: grayscale(1);
    opacity: 0.5;

    &:hover {
      background-color: rgba(204, 217, 220, 0.3);
      filter: grayscale(0);
      opacity: 1;
    }
    &:first-child {
      border: none;
    }

    &#PayPal {
      background-image: url(../img/paypal.svg);
    }
    &#BTC {
      background-image: url(../img/bitcoin.svg);
    }
    &#AliPay {
      background-image: url(../img/alipay.svg);
    }
    &#WeChat {
      background-image: url(../img/wechat.svg);
    }
    &#ps {
      display: block;
      color: #d00;
      text-align: center;
      width: 100%;
    }
  }

  #qrBox {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.3);
    display: none;
    perspective: 400px;
  }
  #imgBox {
    position: absolute;
    width: 200px;
    height: 200px;
    left: calc(50% - 100px);
    top: calc(50% - 100px);
    border-radius: 6px;
    box-shadow: 0px 2px 7px rgba(0, 0, 0, 0.3);
    opacity: 0;
    overflow: hidden;
    cursor: pointer;

    &.showQR {
      opacity: 1;
      animation: showQR 2s ease-in-out 0s 1 normal forwards;
    }
    &.hideQR {
      opacity: 1;
      animation: hideQR 0.5s ease-in-out 0s 1 normal forwards;
    }
  }

  @keyframes showQR {
    0% {
      transform: rotateX(90deg);
    }
    8% {
      transform: rotateX(-60deg);
    }
    18% {
      transform: rotateX(40deg);
    }
    34% {
      transform: rotateX(-28deg);
    }
    44% {
      transform: rotateX(18deg);
    }
    58% {
      transform: rotateX(-12deg);
    }
    72% {
      transform: rotateX(9deg);
    }
    88% {
      transform: rotateX(-5deg);
    }
    96% {
      transform: rotateX(2deg);
    }
  }

  @keyframes hideQR {
    20%,
    50% {
      transform: scale(1.08, 1.08);
    }
    to {
      opacity: 0;
      transform: rotateZ(40deg) scale(0.6, 0.6);
    }
  }
}
